from django.urls import path
from . import views
from fiveapp.views import FamousTeacherView,TeacherDetailView,UserView, UserDetailView
urlpatterns = [
    path('cont/famous/', FamousTeacherView.as_view(), name='teacher-list'),
    path('cont/famous/<int:teacher_id>/', TeacherDetailView.as_view(), name='teacher-detail'),
    path('profession/', views.ProfessionOper.as_view()),
    path('students/', views.get_students),
    path('majors/', views.get_majors),
    path('carousel/', views.get_carousel),
    path('add/', views.AddStudentView.as_view()),
    path('edit/', views.EditStudentView.as_view()),
    path("register/", views.RegisterView.as_view(), name="register"),
    path('login/', views.LoginView.as_view(), name='login'),
    path('users/', UserView.as_view(), name='user-list'),
    path('users/<int:user_id>/', UserDetailView.as_view(), name='user-detail'),
    path('update_userimg/', views.UpdateUserimg)
]